import request from '@/utils/request';

const insuranceHousingFundService = {
    // 险金查询
    async queryInsuranceHousingFund (params) {
        return request('/api/finance/salary/v1/setting/social/employee/page', {
            method: 'POST',
            data: params
        });
    },

    // 城市医社保档案-城市列表 -> 陈炎彬
    async querySocialCityList (organizationCode, effect) {
        return request(`/api/finance/salary/v1/setting/social/list/${organizationCode}/${effect}`, {
            method: 'GET'
        });
    },

    // 城市医社保档案-获取审批详情 -> 陈炎彬
    async querySocialApproveInfo (postData) {
        return request(`/api/finance/salary/v1/setting/social/approve/info/${postData.socialId}`, {
            method: 'GET'
        });
    },

    // 城市医社保档案--重置 -> 陈炎彬
    async resetMedicalSocial(postData) {
        return request(`/api/finance/salary/v1/setting/social/detail/reset/${postData.socialId}`, {
            method: 'GET'
        });
    },

    // 城市医社保档案查询 -> 陈炎彬
    async queryMedicalSocial (postData) {
        return request(`/api/finance/salary/v1/setting/social/detial/${postData.socialId}/${postData.effect}`, {
            method: 'GET'
        });
    },

    // 城市医社保档案--修改社保档案 -> 陈炎彬
    async saveEditMedicalSocial (postData) {
        return request('/api/finance/salary/v1/setting/social/detail', {
            data: postData,
            method: 'PUT'
        });
    },

    // 城市医社保档案--修改社保档案 -> 陈炎彬
    async saveNewMedicalSocial (postData) {
        return request('/api/finance/salary/v1/setting/social/detail', {
            data: postData,
            method: 'POST'
        });
    },

    // 城市医社保档案--删除社保档案详情 -> 陈炎彬
    async deleteMedicalSocial (socialDetailId) {
        return request(`/api/finance/salary/v1/setting/social/detail/${socialDetailId}`, {
            method: 'DELETE'
        });
    },

    // 社保方案 -> 林志胜
    async querySocialPlan(organizationCode) {
        return request(`/api/finance/salary/v1/log/socialPlan/list/${organizationCode}`, {
            method: 'GET'
        });
    },

    // 操作内容 -> 林志胜
    async querySocialOperateContent() {
        return request('/api/finance/salary/v1/log/socialSetLog/operateContent', {
            method: 'GET'
        });
    }
};

export default insuranceHousingFundService;
